dynamic array data validation